<ion-view view-title="借钱">
	<ion-content>
		
		<div style="text-align: center;">
			<i class="ion-ios-checkmark" style="font-size:100px;color:cornflowerblue;"></i>
			<div style="height: 30px;">已借到</div>
			<div style="height: 40px;line-height: 40px;">
				<span style="font-size:36px;">￥{{produce.investAccount}}</span>
			</div>
		</div>
		
		<div style="border-bottom: 1px solid #F8F8F8;height: 10px;margin-left: 10px;margin-right: 10px;clear: left;"></div>
    	<div style="height: 80px;line-height: 40px;color:#888888;margin-left:10px;margin-right:10px;font-size:13px;">
    		<div style="width: 50%;float:left;padding-left: 10px;">
        		<div>应还&nbsp;{{produce.investAccount+produce.payBackInterestMoney+produce.payBackBreakMoney  | number}}元</div>
        		<div>利率&nbsp;{{produce.interestRates*100 | number:0}}%</div>
    		</div>
    		<div style="width: 50%;float:left;text-align: right;padding-right: 10px;">
        		<div>发布日&nbsp;{{produce.createTime | date:'yyyy-MM-dd'}}</div>
        		<div>还款日&nbsp;{{produce.deadTime | date:'yyyy-MM-dd'}}</div>
    		</div>
    	</div>
		
		<div style="border-bottom: 1px solid #F8F8F8;margin-left: 10px;margin-right: 10px;clear: left;"></div>
		
		<div style="margin-right: 17px;margin-left: 17px;height: 70px;">
			<div ng-if="produce.status!=1">
				<div style="float:right;width:100%;">
	    			<button ng-if="produce.type==1" class="button button-full button-positive" ng-click="payBack(produce)" style="border-radius: 3px;">还款</button>
	    			<button ng-if="produce.type==0"  class="button button-full button-positive" ng-click="payBackXsb(produce)" style="border-radius: 3px;">还款</button>
	    	</div>
			</div>
			<div ng-if="produce.status==1">
				<div style="float:left;width:48%;">
					<button class="button button-full button-positive" ng-click="releaseProduce(produce.produceId)" style="border-radius: 3px;background-color: #999999;">结束发布</button>
				</div>
				<div style="float:right;width:48%;">
					<!--还正式标-->
	    			<button ng-if="produce.type==1" class="button button-full button-positive" ng-click="payBack(produce)" style="border-radius: 3px;">还款</button>
	    		</div>
			</div>
			
		</div>
		
		<div ng-if="detailsShow">
			<div style="height: 10px;background-color: #F8F8F8;"></div>
			
			<div style="clear: left;">
				<div style="text-align: center;font-size:13px;color:#808080;margin-top:10px;margin-bottom: 10px;border-bottom: 1px solid #F8F8F8;"><strong>-出借人列表-</strong><br><span style="color: #B2B2B2;">请不要辜负出借人对您的信任哦</span></div>
				<ion-list>
					<ion-item class="item-remove-animate item-avatar item-icon-right" type="item-text-wrap" style="border:0px;padding:0px;min-height: 30px;font-size:13px;color:#808080">
						<div class="row">
						  <div class="col" style="margin-left: 10px;"><strong>出借人姓名</strong></div>
						  <div class="col" style="text-align: center;"><strong>出借金额</strong></div>
						  <div class="col" style="text-align: right;margin-right: 10px;"><strong>出借日期</strong></div>
						</div>
					</ion-item>
					<ion-item class="item-remove-animate item-avatar item-icon-right" ng-repeat="detail in details" type="item-text-wrap" style="border:0px;padding:0px;min-height: 40px;font-size:13px;color:#808080">
						<div class="row">
						  <div class="col" style="margin-left: 10px;" ng-if="produce.type==1&&detail.createTime>=1484373600000">{{detail.name}}{{detail.phone}}</div>
						   <div class="col" style="margin-left: 10px;" ng-if="produce.type==1&&detail.createTime<1484373600000&&detail.userId=='39d33a00-8a58-458f-a388-a3b596c838ad'">赵**4349</div>
						   <div class="col" style="margin-left: 10px;" ng-if="produce.type==1&&detail.createTime<1484373600000&&detail.userId!='39d33a00-8a58-458f-a388-a3b596c838ad'">{{detail.name}}{{detail.phone}}</div>
						 
						 <div class="col" style="margin-left: 10px;" ng-if="produce.type==0">新人贷{{detail.phone}}</div>
						 
						  <div class="col" style="text-align: center;">{{detail.loanMoney}}</div>
						  <div class="col" style="text-align: right;margin-right: 10px;">{{detail.createTime | date:'yyyy-MM-dd'}}</div>
						</div>
					</ion-item>
				</ion-list>
			</div>
		</div>

	</ion-content>
</ion-view>